//
//  TogetherBuyViewController.h
//  PlayBall
//
//  Created by Jdd‘s macbook on 13-9-24.
//
//

#import <UIKit/UIKit.h>
#import "JddBaseViewController.h"
#import "JddTogetherBuyOperation.h"
#import "JddTogetherBuyItemCellHeader.h"
#import "JddTogetherBuyItemCell.h"
#import "TPKeyboardAvoidingScrollView.h"
#import "EGORefreshTableFooterView.h"
#import "JddJoinTogetherBuyOperation.h"
#import "JddTGAlertView.h"
#import "JddQueryBuyHistoryDetailOperation.h"
@class MLTableAlert;

@interface JddTogetherBuyViewController : JddBaseViewController<TogetherBuyOperationDelegate, UITableViewDataSource, UITableViewDelegate, TogetherBuyItemCellHeaderDelegate, TogetherBuyItemCellDelegate, UIGestureRecognizerDelegate, EGORefreshTableDelegate, QueryBuyHistoryDetailOperationDelegate, TGAlertViewDelegate,UITextFieldDelegate>
{
    NSMutableArray *resultArray, *groupArray;
    int pageNo, pageSize, orderField, orderType, lottId;
    EGORefreshTableFooterView *_refreshFooterView;
    BOOL _reloading;
    UIButton *rBtn;
    int BuyShare, Share;
    JddTGAlertView *alert1;
    NSMutableArray *selectLotteryList;
    UIImageView *rImv;
    UIView *rv;
    BOOL isBuy;
    NSString *lssueString;
    NSDictionary *detailData;//传给合买详情
    UIButton *paixuBtn;
    UIButton *lastButton;
    UIImage *paixuImg_Down;
    UIImage *paixuImg_Up;
}
@property (strong, nonatomic) MLTableAlert *alert;
@property (strong, nonatomic) NSString *SchemeID, *EndTime, *LottName;
@property (strong, nonatomic) IBOutlet UITableView *tableView;
//@property (nonatomic, strong) IBOutlet TPKeyboardAvoidingScrollView *scrollView;
@property (weak, nonatomic) IBOutlet UIButton *footButton;
@property (nonatomic, strong) IBOutlet UIButton *btn1, *btn2, *btn3, *btn4, *btn5, *btn6;
@property (nonatomic, strong) NSString *uName, *jd, *level;
@property (nonatomic, assign) BOOL isYsq;
@property (nonatomic, assign) int BuyShare, Share;
@property (strong, nonatomic) NSIndexPath *lastIndexPath;
@property(nonatomic, assign)  CGPoint alertTableViewContentOffset;
SHARED_VIEW_CONTROLLER_DECLARE(JddTogetherBuyViewController);

- (IBAction)titleAction:(id)sender;
-(IBAction)refresh2;
@end
